﻿namespace FiftyOne.Foundation.Mobile.Detection.Wurfl.Matchers.Segment
{
    using System;
    using System.Collections.Generic;

    internal class Segments : List<FiftyOne.Foundation.Mobile.Detection.Wurfl.Matchers.Segment.Segment>
    {
        internal int TotalScore
        {
            get
            {
                int num = 0;
                foreach (FiftyOne.Foundation.Mobile.Detection.Wurfl.Matchers.Segment.Segment segment in this)
                {
                    if (segment.IsValid)
                    {
                        num += segment.Score;
                    }
                }
                return num;
            }
        }
    }
}

